package com.demo.study.vos;

import lombok.Data;
import lombok.ToString;

/**
 * @author Baymax
 * @since 2021/7/13
 */
@Data
@ToString
public class Student implements Comparable<Student> {
    private String name;

    private int age;

    @Override
    public int compareTo(Student stu) {
        return this.getAge() - stu.getAge();
    }
}
